﻿<UserControl x:Class="AgilePlannerDT.Display.CustomWidgets.ColorChooser"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="450" Width="180" Focusable="True">

    <UserControl.Resources>
        <Style TargetType="{x:Type Button}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate>
                        <Grid>
                            <Border Margin="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" CornerRadius="10" BorderBrush="DarkGray" BorderThickness="1" Background="{TemplateBinding Property=Background}" />
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </UserControl.Resources>
    <Border Margin="0,0,0,0" Name="border1" CornerRadius="10" BorderThickness="1" BorderBrush="DarkGray" Opacity="0.9">
        <Border.Background>
            <LinearGradientBrush EndPoint="0.486,0.986" StartPoint="0.486,0">
                <!--<GradientStop Color="Blue" Offset="0"/>
                <GradientStop Color="CornflowerBlue" Offset="1"/>-->
                <GradientStop Color="#EE000000" Offset="0"/>
                <GradientStop Color="#F48D8D8D" Offset="0.558"/>
                <GradientStop Color="#F8747474" Offset="0.615"/>
                <GradientStop Color="#FD8D8D8D" Offset="0.76"/>
                <GradientStop Color="#FFD0D0D0" Offset="1"/>
            </LinearGradientBrush>
        </Border.Background>
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="60" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="*" />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
            </Grid.RowDefinitions>

            <Button Padding="1" HorizontalAlignment="Stretch" Margin="0" Name="whiteButton" VerticalAlignment="Stretch" Grid.Column="0" Grid.Row="0" BorderThickness="0" Background="White" BorderBrush="Transparent"/>
            <Label FontSize="16" Name="whiteLabel" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" VerticalAlignment="Stretch" Margin="1" Grid.Row="0" Grid.Column="1" Content="White" Foreground="White" />

            <Button Padding="1" HorizontalAlignment="Stretch" Margin="0" Name="redButton" VerticalAlignment="Stretch" Grid.Column="0" Grid.Row="1" BorderThickness="0" BorderBrush="Transparent" Background="#FF6347" />
            <Label FontSize="16" Name="redLabel" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" VerticalAlignment="Stretch" Margin="1" Grid.Row="1" Grid.Column="1" Content="Red" Foreground="White"/>

            <Button Padding="1" HorizontalAlignment="Stretch" Margin="0" Name="pinkButton" VerticalAlignment="Stretch" Grid.Column="0" Grid.Row="2" BorderThickness="0" BorderBrush="Transparent" Background="#FFC0CB" />
            <Label FontSize="16" Name="pinkLabel" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" VerticalAlignment="Stretch" Margin="1" Grid.Row="2" Grid.Column="1" Content="Pink" Foreground="White" />

            <Button Padding="1" HorizontalAlignment="Stretch" Margin="0" Name="blueButton" VerticalAlignment="Stretch" Grid.Column="0" Grid.Row="3" BorderThickness="0" BorderBrush="Transparent" Background="#ADD8E6" />
            <Label FontSize="16" Name="blueLabel" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" VerticalAlignment="Stretch" Margin="1" Grid.Row="3" Grid.Column="1" Content="Blue" Foreground="White"/>

            <Button Padding="1" HorizontalAlignment="Stretch" Margin="0" Name="greenButton" VerticalAlignment="Stretch" Grid.Column="0" Grid.Row="4" BorderThickness="0" BorderBrush="Transparent" Background="#8FBC8F" />
            <Label FontSize="16" Name="greenLabel" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" VerticalAlignment="Stretch" Margin="1" Grid.Row="4" Grid.Column="1" Content="Green" Foreground="White"/>

            <Button Padding="1" HorizontalAlignment="Stretch" Margin="0" Name="yellowButton" VerticalAlignment="Stretch" Grid.Column="0" Grid.Row="5" BorderThickness="1" BorderBrush="Transparent" Background="#FFF68F" />
            <Label FontSize="16" Name="yellowLabel" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" VerticalAlignment="Stretch" Margin="1" Grid.Row="5" Grid.Column="1" Content="Yellow" Foreground="White"/>

            <Button Padding="1" HorizontalAlignment="Stretch" Margin="0" Name="peachButton" VerticalAlignment="Stretch" Grid.Column="0" Grid.Row="6" BorderThickness="1" BorderBrush="Transparent" Background="#FFDAB9" />
            <Label FontSize="16" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" VerticalAlignment="Stretch" Margin="1" Grid.Row="6" Grid.Column="1" Content="Peach" Foreground="White"/>

            <Button Padding="1" HorizontalAlignment="Stretch" Margin="0" Name="grayButton" VerticalAlignment="Stretch" Grid.Column="0" Grid.Row="7" BorderThickness="1" BorderBrush="Transparent" Background="#BEBEBE" />
            <Label FontSize="16" Name="grayLabel" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" VerticalAlignment="Stretch" Margin="1" Grid.Row="7" Grid.Column="1" Content="Gray" Foreground="White"/>

            <Button Padding="1" HorizontalAlignment="Stretch" Margin="0" Name="aquaButton" VerticalAlignment="Stretch" Grid.Column="0" Grid.Row="8" BorderThickness="1" BorderBrush="Transparent" Background="#66CDAA" />
            <Label FontSize="16" Name="aquaLabel" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" VerticalAlignment="Stretch" Margin="1" Grid.Row="8" Grid.Column="1" Content="Aqua" Foreground="White"/>

            <Button Padding="1" HorizontalAlignment="Stretch" Margin="0" Name="khakiButton" VerticalAlignment="Stretch" Grid.Column="0" Grid.Row="9" BorderThickness="1" BorderBrush="Transparent" Background="#BDB76B" />
            <Label FontSize="16" Name="khakiLabel" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" VerticalAlignment="Stretch" Margin="1" Grid.Row="9" Grid.Column="1" Content="Khaki" Foreground="White"/>
        </Grid>
    </Border>
</UserControl>
